package com.vcredit.creditcat.api;

import java.util.List;

import com.vcredit.creditcat.dto.MessageDto;
import com.vcredit.creditcat.enumtype.MessageOperationEnum;


public interface IMessageManager {
	/**
	 * 获取某个用户的所有未删除消息列表
	 * @param custId
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List<MessageDto> getMessageList(Long custId, Integer msgKind, Integer pageIndex,
			Integer pageSize) throws Exception;
	/**
	 * 批量处理消息
	 * 
	 * @param msgIds
	 * @param msgOperation
	 * @return
	 * @throws Exception
	 */
	public void modifyMessages(List<Long> msgIds,
			MessageOperationEnum msgOperation,int msgKind) throws Exception;
	/**
	 * 查询用户未读消息总数
	 * @param custId
	 * @return
	 */
	public Integer getUnreadCount(Long custId) throws Exception;
	
	/**
	 * 发送站内信
	 * 
	 * @param custId
	 * @param title
	 * @param content
	 * @throws Exception
	 */
	public void sendNotify(Long custId,String title,String content) throws Exception;
}
